<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreatePaneltplAreasTable extends Migration
{

    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('paneltpl_areas', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('paneltpl_id')->default(0)->unsigned()->comment('panel模板');
            $table->string('area', 100)->comment('区位编号');
            $table->integer('meta_id')->default(0)->unsigned()->comment('mete模板');
            $table->string('ui', 191)->nullable()->comment('区域视图');
            $table->string('onup')->nullable()->comment('onup');
            $table->string('ondown')->nullable()->comment('ondown');
            $table->string('onleft')->nullable()->comment('onleft');
            $table->string('onright')->nullable()->comment('onright');
            $table->string('options')->nullable()->comment('options');
            $table->string('description')->nullable()->comment('说明');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('paneltpl_areas');
    }
}
